package com.coincalf.admin.service.impl;

import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import com.coincalf.admin.dto.UserWalletDTO;
import com.coincalf.admin.entity.UserWallet;
import com.coincalf.admin.mapper.UserWalletMapper;
import com.coincalf.admin.service.UserWalletService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 用户钱包表 服务实现类
 * </p>
 *
 * @author qiang
 * @since 2018-05-13
 */
@Service
public class UserWalletServiceImpl extends ServiceImpl<UserWalletMapper, UserWallet> implements UserWalletService {


    @Override
    public Page<UserWalletDTO> selectUserWalletList(Page<UserWalletDTO> page, Long id) {
        return page.setRecords(baseMapper.selectUserWalletList(page,id));
    }
}
